package com.edu.api;

import com.edu.pojo.APIResult;
import com.edu.pojo.Admin;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @作者 five-five
 * @创建时间 2021/1/16
 */
@RestController
public interface AdminApi {
    /**
     * 根据id获取admin
     * @return
     */
    @RequestMapping(value = "/getById", method = RequestMethod.GET)
    APIResult<Admin> getById(
            @RequestParam(required = true) String id
    );
    /**
     * 获取全部学生，测试dubbo
     * @return
     */
    @RequestMapping(value = "/stuList", method = RequestMethod.GET)
    APIResult<Object> stuList();
}
